import request from "@/utils/request";

export function getAccountList(data) {
  return request({
    url: "/account/list",
    method: "post",
    data,
  });
}

export function getAccount(data) {
  return request({
    url: "/account/list",
    method: "get",
    params: data,
  });
}

export function addAccount(data) {
  return request({
    url: "/account/signIn",
    method: "post",
    data,
  });
}

export function updateAccount(data) {
  return request({
    url: "/account/update",
    method: "post",
    data,
  });
}

export function changePassword(data) {
  return request({
    url: "/account/changePassword",
    method: "post",
    data,
  });
}

export function getMenu() {
  return request({
    url: "/menu/get",
    method: "get"
  });
}
